TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How do I get the coordinates of the collision points between two physics?
Pages:
1
How do I get the coordinates of the collision points between two physics?
szzg007
Posts: 65
June 09, 2017, 03:28:55 am
I want to make a ninja killing monsters with a knife. But I don't know how to find the coordinates when the knife collides with the enemy What's the way to get a knife in an arc, fan-shaped movement?. Get the point of contact with the enemy's body?
Class type“GetManifold()?”
szzg007
Posts: 65
June 09, 2017, 03:31:35 am
control Buttons : X,Z,A and Up, down, right, lift.
JeffreyDriver
Posts: 2262
June 09, 2017, 09:09:02 am
See the blocks under COLLISIONS > COLLISION POINTS. Those will get you the XY values.
Getting the sword to swing in an arc will probably require some mathematics, which is a weakness of mine, so someone else can probably help you.
Edit: Just had an idea about the sword. If you set the origin point at the end of the handle (or use another custom origin point if you need) you can then rotate it as you need.
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
szzg007
Posts: 65
June 27, 2017, 08:44:31 am
No..This not work!....
JeffreyDriver
Posts: 2262
June 27, 2017, 09:15:46 am
What exactly isn't working?
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
Pages:
1