gennadiy
-
Posts
3 -
Joined
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by gennadiy
-
-
Oh, I founded this:
obj:AlignToVector(normal, 1)
Sorry
-
Hello, friends! I'm new in Leadwerks Game Engine and I need help. Previously, I have programmed in Unity3D. So what's the problem - I need to create the object after the collision object to the scene and turn it as well as the collision surface (normal). On the Unity I wrote:
void OnCollisionEnter (Collision col) { if (col.gameObject.CompareTag("Scene")) { ContactPoint contact = col.contacts[0]; Transform Obj = Instantiate(Object, contact.point, Quaternion.FromToRotation(Vector3.up, contact.normal)) as Transform; } }
and how i can do this on Leadwerks?
function Script:Collision(entity, position, normal, speed) local collisiontype = entity:GetCollisionType() if collisiontype==Collision.Scene then local obj = Prefab:Load("Prefabs/Object.pfb") obj :SetPosition(position + normal * 0.1) end end
But how i can rotate object? Sorry for my bad English and noob question (((
Failed to initialize graphics 2
in Windows
Posted
Hello.
I can't run Leadwerks on the computer with features:
Core i7-4770
HD Graphics 4600
Ram 4 Gb
Windows 7 x64
DirectX 11
OpenGL 4.3
Last drivers