Is there a function...
by Bruce Morick · in Torque 2D Beginner · 09/15/2015 (6:16 pm) · 3 replies
to accomplish this...
SpriteB rotates SpriteA at a set distance when SpriteA is rotated.
SpriteA will also be moving through space.
Both SpriteA and SpriteB have their own collision shapes.
Like a planet with a moon passing through space and each reacting differently to collisions with asteroids.
SpriteB rotates SpriteA at a set distance when SpriteA is rotated.
SpriteA will also be moving through space.
Both SpriteA and SpriteB have their own collision shapes.
Like a planet with a moon passing through space and each reacting differently to collisions with asteroids.
About the author
Torque Owner Richard Ranft
Roostertail Games
You can attach objects to each other using joints - but remember that each object has mass, so your orbiting will cause the satellite to drag the parent around a bit unless there is a great difference between the two masses (just like the real thing).