Slastraf Posted June 11, 2015 Share Posted June 11, 2015 Hello I want to make an elevator-like capsule which has the movingplatform script attached. the problem is that it has some physics objects attached that are colliding with the capsule So how do you make a script or adjust things like that in the editor? The Objects that are attached to the moving platform should only collide with the player (or just not with the platform) Quote Link to comment Share on other sites More sharing options...
Admin Posted June 11, 2015 Share Posted June 11, 2015 Define a new collision response between two types: void Collision::SetResponse(const int collisionTypeA, const int collisionTypeB, const int response) Response can be: Collision.None Collision.Collide Collision.Trigger And then call Entity:SetCollisionType() http://www.leadwerks.com/werkspace/page/api-reference/_/entity/entitysetcollisiontype-r35 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.