Jump to content

Recommended Posts

Posted

I know how to do this in LE2 by defining custom collision types. However I can't seem to figure it out in Leadwerks 3.

 

 

If I set a projectile set to Collision::Prop or Collision::Scene

 

- projectile sometimes collides with player

 

If I set a projectile to Collision::Trigger

 

- projectile ignores BSP geometry

 

Is it possible to set a custom collision type which I can set it to ignores player collision but detect all others in Leadwerks 3?

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Posted

It's not technically in the API, but you can do this:

PhysicsDriver::GetCurrent()->SetCollisionResponse(type0,type1,1)

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

  • 3 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...