OneHitWonder Posted April 18, 2020 Share Posted April 18, 2020 Hello, I have just implemented click movement for my player using the GoToPoint() method. It works ok but if I increase the speed the character can overshoot the mark resulting in a sort of sling shot until it looses momentum. I had an idea to draw a physical object at the clicked location and on collision the player will stop. It seems however that the player just walks on by and right through the object. What settings do I need to adjust on the object to allow the player to collide? So far I have set the collision type to Scene. self.cursor:SetCollisionType(Collision.Scene) I did wonder if I needed to setup any physics for the object but ideally I didn't want the object to move, but I noticed the documentation for SetPhysicsMode() has an example which doesn't actually use the method. https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_SetPhysicsMode Cheers. Quote Link to comment Share on other sites More sharing options...
Marcousik Posted April 21, 2020 Share Posted April 21, 2020 Are you sure your "physical object" has a shape? Because never heard player controller going through scene object... Quote Link to comment Share on other sites More sharing options...
OneHitWonder Posted April 21, 2020 Author Share Posted April 21, 2020 32 minutes ago, Marcousik said: Are you sure your "physical object" has a shape? Because never heard player controller going through scene object... I don't think it has a shape actually. I will check this later. Thanks. Quote Link to comment Share on other sites More sharing options...
markchapman Posted July 8, 2020 Share Posted July 8, 2020 The universal way of saying it worked, lol. 2 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.