A Flash Developer Resource Site

Results 1 to 19 of 19

Thread: Adjusting Angles of a Physics Engined object

Hybrid View

  1. #1
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Think of a dart (like with a dartboard), most of the mass is in the front. This causes the center of mass to be shifted forward, and things rotate around a point that's not in the center. If you drop the projectile without any angular momentum, it'll start rotating so that the heavy bit goes down. I think. I don't know if that's necessary for your projectile or not. You can play with the settings once you've got it set up.

    You can rotate the entire composite with rotateByAngle or rotateByRadian.
    http://www.cove.org/ape/docs/api/

    I think you'll have to move one or both of the internal particles in order to place the whole thing where you want it.

  2. #2
    Member
    Join Date
    Dec 2007
    Posts
    85
    Ok, I put that all in and so far it's working ok. I'm still making tweaks to get the positioning right. However, I've hit two things:

    I watch the two particles, and I can see them doing there thing. However, I cannot apply this to my overlaying shell movieclip. I need to find a way to find the difference between the two particles now, such that it allows me to find the angle.

    In other words, it doesn't seem to have solved much of my problem, just recreated it in a new way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center