🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Position Offset issue

Started by
2 comments, last by CreationHunter 6 years, 4 months ago

i've been trying to sort this for a few days now and with no luck, hope someone can advise (see diagram attached).

* Screen space is drawn from top left as 0,0.
* I have an emitter at (A) which shoots a particle that checks for a collision until it hits a surface.
* (A) can move around, and (B)s position is linked to (a child of) A.   So if A is moves, B also moves with A.

At the moment I have a particle firing up into the air but it constantly finds collision which is level with the Emitter (black line in the pic).
It doesn't continue falling until it hits a surface. Help.


** Problem solved, thread can be deleted **

 

Advertisement

Can you show us the code used to simulate the projectile, and handle the collision with B?

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Thx for quick reply sc, it is solved.

This topic is closed to new replies.

Advertisement