Re: about set-density

jon klein <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
On Jun 21, 2004, at 5:45 PM, Naiqi Weng wrote:

> hi, I am a new user of breve.
>  When I am writing a code to equilibrate the object(it is 
> physics-based), I find it seems that the set-density method in class 
> "Shape" doesn't work, I mean when I use this method to change the 
> density, the force to counteract the gravity force is the same.

set-density needs to be called before you initialize the shape.  So 
after you create the Shape with new, but before you call any of the 
"init-with" methods, you have to call set-density.  In version 2.0, 
this limitation will be removed.

If you are calling set-density before initializing the shape and it's 
still not working, please send me a simulation which exhibits the bug 
and I'll have a look at it.

> Also, I want to know if there is a method which can give a Multibody 
> object an instant impulse,not just the constant force.

There is no explicit method to do this, though the same effect can be 
achieved by directly modifying the Multibody's velocity.

- jon klein

_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.