Search found 6 matches
- Thu May 02, 2013 2:17 pm
- Forum: Suggestions
- Topic: BoundingSphereForceFieldShape
- Replies: 1
- Views: 18373
BoundingSphereForceFieldShape
hi, maybe for completeness, you could add a bounding sphere force field shape like the one i build on my own from your bounding box shape template: /// <summary> /// Defines the area in which a force field works using an entity's shape. /// </summary> public class BoundingSphereForceFieldShape : For...
- Sat Apr 27, 2013 9:19 pm
- Forum: Questions and Help
- Topic: Buoyancy and active entities
- Replies: 6
- Views: 5239
Re: Buoyancy and active entities
indeed, also according to the msdn reference passing of value types doesn't include boxing. that's new to me, somehow i just assumed it. this opens new optimization potential to me
thx
thx
- Sat Apr 27, 2013 11:56 am
- Forum: Questions and Help
- Topic: Buoyancy and active entities
- Replies: 6
- Views: 5239
Re: Buoyancy and active entities
i understand. just another fundamental question which came to my mind when i saw the handover of the single Vector3 by reference: why do you think this increases performance? doesn't it involve boxing of the struct and therefor additional overhead also giving the GC additional work? wouldn't it be m...
- Sat Apr 27, 2013 12:35 am
- Forum: Questions and Help
- Topic: Buoyancy and active entities
- Replies: 6
- Views: 5239
Re: Buoyancy and active entities
works well! thank you. where can i get more information about the properties and methods you've mentioned (concerning the momentum) and how they are supposed to be used? is the activation thing the only difference? when should i usually use the waking up properties and when do i have to apply the mo...
- Fri Apr 26, 2013 10:33 am
- Forum: Questions and Help
- Topic: Buoyancy and active entities
- Replies: 6
- Views: 5239
Buoyancy and active entities
hi, i'm adding a buoyancy momentum to all my entities in their update method this way: // add buoyancy momentum if (buoyancy == true) // apply buoyancy force only to objects which are already moving to allow the entities to fall to sleep mode if they got to a rest if ((convexHull.AngularVelocity.Len...
- Thu Apr 25, 2013 12:29 pm
- Forum: Suggestions
- Topic: Interpolated state update on using Space.Update()
- Replies: 1
- Views: 18441
Interpolated state update on using Space.Update()
Since there is no interpolated state update done using the parameterless update method of the Space class, you could maybe add something like the code below to the Space class? It is needed if you do the time-stepping on your own (since other parts of your engine depend on it as well) and want to ca...